/* 头像样式 */
.user-avatar {
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 匿名用户头像特殊样式 */
.user-avatar.anonymous {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #90caf9;
}

/* 医生头像特殊样式 */
.user-avatar.doctor {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-color: #d0d0d0;
}

/* 病友圈详情页面样式 */
.sick-circle-detail {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 80px; /* 为底部操作栏留出空间 */
}

/* 顶部导航栏吸顶样式 */
.sick-circle-detail :global(.adm-nav-bar) {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 导航栏容器样式 */
.detail-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 确保导航栏容器也是吸顶的 */
.sick-circle-detail .adm-nav-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

/* 深色模式下的导航栏样式 */
@media (prefers-color-scheme: dark) {
  .sick-circle-detail :global(.adm-nav-bar) {
    background: rgba(31, 31, 31, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  .detail-navbar {
    background: rgba(31, 31, 31, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

.sick-circle-detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.sick-circle-detail-loading p {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
}

.detail-error {
  padding: 40px 20px;
  text-align: center;
}

.detail-error p {
  color: #ff4d4f;
  margin-bottom: 16px;
  font-size: 16px;
}

.detail-error button {
  background-color: #1677ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.detail-error button:hover {
  background-color: #0958d9;
}

/* 基本信息头部 */
.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px 20px;
  color: white;
  margin-bottom: 16px;
}

.patient-info {
  text-align: center;
}

.patient-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.disease-info,
.department-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.disease-label,
.department-label {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.disease-name,
.department-name {
  font-weight: 500;
}

/* 详情内容区域 */
.detail-section {
  background: white;
  margin: 0 16px 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-title {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px;
  margin: 0;
}

.section-content {
  padding: 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

/* 治疗经历样式 */
.treatment-item {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
}

.treatment-label {
  color: #666;
  font-weight: 500;
  min-width: 80px;
  flex-shrink: 0;
}

.treatment-value {
  color: #333;
  flex: 1;
}

/* 图片容器 */
.image-container {
  text-align: center;
}

.detail-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
  padding: 40px 20px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  color: #6c757d;
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.image-placeholder p {
  margin: 0;
  font-size: 14px;
}

/* 多图布局 */
.images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.images-grid .image-container {
  text-align: center;
}

.images-grid .detail-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

/* 采纳建议样式 */
.adopt-info {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.adopt-user,
.adopt-comment,
.adopt-time {
  margin-bottom: 12px;
}

.adopt-user:last-child,
.adopt-comment:last-child,
.adopt-time:last-child {
  margin-bottom: 0;
}

.adopt-label {
  color: #666;
  font-weight: 500;
  margin-right: 8px;
}

.adopt-name {
  color: #28a745;
  font-weight: 600;
}

.adopt-text {
  color: #333;
  line-height: 1.5;
}

.adopt-date {
  color: #666;
}

/* 底部操作栏 */
.detail-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e8e8e8;
  padding: 12px 20px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.detail-actions .action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.detail-actions .action-item:hover {
  background-color: #f5f5f5;
}

.detail-actions .action-item.loading {
  cursor: not-allowed;
  opacity: 0.7;
}

.detail-actions .action-item svg {
  font-size: 20px;
  color: #666;
  transition: all 0.3s ease;
}

.detail-actions .action-item svg.active {
  color: #ff6b6b;
  transform: scale(1.1);
}

.detail-actions .action-item span {
  font-size: 12px;
  color: #666;
  transition: color 0.3s ease;
}

.detail-actions .action-item.loading span {
  color: #999;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .detail-header {
    padding: 20px 16px;
  }
  
  .patient-name {
    font-size: 20px;
  }
  
  .detail-section {
    margin: 0 12px 12px;
  }
  
  .section-title {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .section-content {
    padding: 16px;
    font-size: 13px;
  }
  
  .detail-actions {
    padding: 10px 16px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .sick-circle-detail {
    background-color: #141414;
  }
  
  .sick-circle-detail-loading {
    background-color: #141414;
  }
  
  .detail-section {
    background: #1f1f1f;
  }
  
  .section-content {
    color: #ecf0f1;
  }
  
  .treatment-label {
    color: #bdc3c7;
  }
  
  .adopt-info {
    background: #2d3748;
  }
  
  .detail-actions {
    background: #1f1f1f;
    border-top-color: #333;
  }
  
  .action-item:hover {
    background-color: #2d3748;
  }
}

